package com.mvp.shq.washer.ui.resetPwd;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.BaseResult;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/30.
 */

public interface ResetPwdConstract {
    interface Model extends BaseModel {
        Observable<BaseResult<String>> commit(String token,String userId,String oldPwd,String newPwd);
    }
    interface View extends BaseView{
        void resetSuccess();
        void resetFail(String msg);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void commit(String oldPwd,String newPwd);
    }
}
